
/*地图信息窗*/
.map-popup {
  position: relative;
  min-width: 305px; 
  min-height: 220px;

  .map-popup-content {
    position: absolute;
    left: 0; top: 0; 
    padding: 5px 0 0 5px;
    width: 100%;
  }

  .title {
    width: 100%;
    line-height: 20px;
    height: 25px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 4px;
    span.name {
      display: inline-block;
      float: left;
      font-size: 14px;
      font-weight: bold;
      width: 220px;
      max-width: 220px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow:hidden;
      color: #333;
    }

    a.popup-close {
      display: inline-block;
      float: right;
      width: 16px; height: 16px;
      background: url(imgs/popup/cancel.png) no-repeat 0 0;
      cursor: pointer;

      &:hover {
        background: url(imgs/popup/cancel-hover.png) no-repeat 0 0;
      }
      &:active {
        background: url(imgs/popup/cancel-msedown.png) no-repeat 0 0;
      }
    }

    a.popup-delete {
      display: inline-block;
      float: right;
      width: 18px; height: 18px;
      background: url(imgs/popup/delete.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;

      &:hover {
        background: url(imgs/popup/delete-hover.png) no-repeat 0 0;
      }
      &:active {
        background: url(imgs/popup/delete-msedown.png) no-repeat 0 0;
      }
    }
    
    a.popup-edit {
      display: inline-block;
      float: right;
      width: 18px; height: 18px;
      background: url(imgs/popup/edit.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;
      &:hover {
        background: url(imgs/popup/edit-hover.png) no-repeat 0 0;
      }
      &:active {
        background: url(imgs/popup/edit-msedown.png) no-repeat 0 0;
      }
    }

    a.popup-sure {
      display: inline-block;
      float: right;
      width: 16px; height: 16px;
      background: url(imgs/popup/sure.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;

      &:hover {
        background: url(imgs/popup/sure-hover.png) no-repeat 0 0;
      }
      &:active {
        background: url(imgs/popup/sure-msedown.png) no-repeat 0 0;
      }
    }
    a.popup-setting {
      width: 18px; 
      height: 18px;
      display: inline-block;
      float: right;
      background: url(imgs/popup/setting.png) no-repeat 0 0;
      cursor: pointer;
      margin-right: 3px;

      &:hover {
        background: url(imgs/popup/setting-hover.png) no-repeat 0 0;
      }
    }
  }

  .content {
    width: 100%;
    padding:0 10px;
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;

    .pictures {
      position: relative;
      width: 100%;
      height: 90px;
      margin-bottom: 5px;

      .photo {  
        position: relative;  
        width: 92px;
        height: 92px;
        text-align: center;
        float: left;
        margin-left: 10px;
        border: 1px solid #ddd;
        cursor: pointer;
        line-height: 85px;

        &.no-border {
          width: 90px;
          height: 90px;
          border: 0;
          &:hover {
            box-shadow: none;
          }
        }

        &:hover {
          box-shadow: 0 0 5px rgba(0,0,0,.5);
          .description {
            color: #333;
          }
        }

        &.none {
          background: transparent url(imgs/popup/branch.png) no-repeat 0 0;
        }

        &.edit, &.add {
          background: transparent url(imgs/popup/add.png) no-repeat center center;
          background-size: 60px 60px;
        }

        img {
          max-width: 90px;
          max-height: 90px;
        }
        .description {
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          background: #fff;
          color: #999;
          text-align: center;
          font: normal normal normal 12px/25px 'microsoft yahei';
        }

        .caption {
          position: absolute;
          bottom: 0; left: 0;
          width: 100%;
          background-color: rgba(180,180,180,.7);
          text-align: center;
          line-height: 18px;
          span {
            display: inline-block;
            text-align: center;
          }
        }

        .count {
          position: absolute;
          bottom: 0;
          right: 0;
          line-height: 18px;

          span {
            width: auto;
            color: #fff;
            display: inline-block;
            padding: 0 5px;
            font: normal normal normal 12px/18px 'microsoft yahei';
            background: rgba(180,180,180,.7);
          }
        }
      }

      > .caption {
        position: absolute;
        bottom: 0; left: 0;
        width: 70px;
        background-color: rgba(180,180,180,.7);

        span {
          display: inline-block;
          text-align: center;
          float: left;  

          &.first {
            width: 60px;
          }
          &.second {
            width: 90px;
          }
        }
      }

      .preview-img {
        position: relative;
        width: 90px;
        height: 90px;
        text-align: center;
        float: left;
        margin-left: 2px;
        cursor: pointer;
        line-height: 85px;
        border: 1px solid #ddd;

        &:hover {
          box-shadow: 0 0 5px rgba(0,0,0,.3);
        }

        img{
          max-width: 100%;
          max-height: 100%;
        }

        .count {
          position: absolute;
          bottom: 0;
          right: 0;
          line-height: 18px;
          span {
            width: auto;
            color: #fff;
            display: inline-block;
            padding: 0 5px;
            font: normal normal normal 12px/18px 'microsoft yahei';
            background: rgba(180,180,180,.7);
          }
        }
      }
    }
    
    .branch-icon-popup { 
      width: 60px;
      height: 60px;
      float: left;
      text-align: center;
      cursor: pointer;
      margin-top: 8px;

      &:hover {
        box-shadow: 0 0 5px rgba(0,0,0,.5);
      }
    }

    .attr {
      width: 100%;
      display: block;
      line-height: 26px;
      min-height: 28px;

      .label {
        display: inline-block;
        float: left;
        width: 70px;
        line-height: 26px;
        font-size: 12px;
        font-family: 'microsoft yahei';
        color: #888;
        font-weight: normal;
        text-align: left;
        padding: 0;
        background-color: #fff !important;
      }

      .text {
        width: 200px;
        display: inline-block;
        max-width: 200px;
        max-height: 70px;
        font-size: 12px;
        font-family: 'microsoft yahei';
        color: #333;
        word-wrap:break-word;
        line-height: 18px;
        margin-top: 4px;
        overflow-y: auto;
      }

      a.choose-cars {
        color: #3D6DCC;
        cursor: pointer;
      }

      .hint {
        color: red;
        display: block;
        height: 16px;
      }

      .input-file {
        width: 200px;
        display: inline-block;
        border: 1px solid #ccc;
        outline: none;
        font-size: 12px;
        font-family: 'microsoft yahei', arial;
        padding: 1px 5px;
        line-height: 12px;
      }

      a.a-save-as-branch {
        margin: 5px 0 0 100px;
      }
      
      select {
	    	width: 90px;
	    	height: 22px;
	    	padding: 0;
	    	color: #333;
	    	
	    	&.longer {
	    		width: 120px;
	    	}
	    }
    }

    .hide {
      display: none;
    }

    .input {
      border: 1px solid #ccc;
      outline: none;
      font-size: 12px;
      font-family: 'microsoft yahei', arial;
      padding: 1px 5px;
      line-height: 12px;
      width: 200px;
      border-radius: 0;
      margin: 0;
      color: #333 !important;
    }
    
    .input-disable {
      border: 1px solid #ccc;
      outline: none;
      font-size: 12px;
      font-family: 'microsoft yahei', arial;
      padding: 1px 5px;
      line-height: 12px;
      width: 68px;
      cursor: pointer;
      border-radius: 0;
      margin: 0;
      
      &.longer {
      	width: 120px;
      }
    }

    .red {
      color: red;
    }

    .green {
      color: green;
    }

    span.detail {
      max-width: 290px;
      display: block; 
      font-size: 12px;
      font-family: 'microsoft yahei';
      text-indent: 26px;
      line-height: 26px;
    }
  }
  
  .map-popup-icons {
    display: none;
  }
}